
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import baseInfo from './utils/config'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/public.css'

import myModal from './components/common/myModal.js'
import mypagination from './components/Pagination/pagination'

import mixin from './mixins/globalMixin.js'
import Router from 'vue-router'
import echarts from 'echarts'
import './styles/index.scss'

export const eventBus = new Vue()

const routerPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return routerPush.call(this, location).catch(error => error)
}
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(myModal)
Vue.use(mypagination)
Vue.mixin(mixin)
Vue.prototype.$baseInfo = baseInfo
Vue.prototype.$echarts = echarts
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
